<?php
namespace Admin\Controller;
use Admin\Controller\CommonController;
use Common\Model\SysconfigModel;
use Think\Controller;

class ReplaceController extends  CommonController{


	public function index(){
		$model = new SysconfigModel();
		if(IS_POST){
			if(!$model->editReplaceWord()){
				$this->error($model->getError());
			}
			$this->success('修改成功',U('admin/replace/index'));
		}

		$data = $model->getReplaceWord();
		$this->assign('data',$data);

		$this->display();
	}



}
